body{
    margin: 0;
    padding: 0;
}

.container {
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/img.png");
    background-size: cover;
    filter: brightness(99.8%);
    -webkit-ilter: brightness(70%);
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
    color: rosybrown;
    padding: 20px;
}

.petal {
    position: absolute;
    width: 15px;
    height: 25px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(135deg, #ff88b3, #ff5599);
    transform-origin: bottom center;
    animation: fall linear infinite;
    opacity: 0;
    filter: blur(5px);
}

.petal:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; }
.petal:nth-child(2) { left: 15%; animation-duration: 6s; animation-delay: 1s; }
.petal:nth-child(3) { left: 25%; animation-duration: 7s; animation-delay: 0.5s; }
.petal:nth-child(4) { left: 35%; animation-duration: 9s; animation-delay: 2s; }
.petal:nth-child(5) { left: 45%; animation-duration: 5s; animation-delay: 0.8s; }
.petal:nth-child(6) { left: 55%; animation-duration: 7.5s; animation-delay: 1.2s; }
.petal:nth-child(7) { left: 65%; animation-duration: 6.5s; animation-delay: 0.3s; }
.petal:nth-child(8) { left: 75%; animation-duration: 8.5s; animation-delay: 1.5s; }
.petal:nth-child(9) { left: 85%; animation-duration: 5.5s; animation-delay: 0.7s; }
.petal:nth-child(10) { left: 95%; animation-duration: 7.2s; animation-delay: 1.8s; }

.petal:nth-child(n+11) {
    width: 12px;
    height: 20px;
    background: linear-gradient(135deg, #ffb3cc, #ff88b3);
}
.petal:nth-child(11) { left: 8%; animation-duration: 7.8s; animation-delay: 0.2s; }
.petal:nth-child(12) { left: 18%; animation-duration: 6.2s; animation-delay: 1.1s; }
.petal:nth-child(13) { left: 28%; animation-duration: 7.3s; animation-delay: 0.6s; }
.petal:nth-child(14) { left: 38%; animation-duration: 8.8s; animation-delay: 2.1s; }
.petal:nth-child(15) { left: 48%; animation-duration: 5.2s; animation-delay: 0.9s; }
.petal:nth-child(16) { left: 58%; animation-duration: 7.7s; animation-delay: 1.3s; }
.petal:nth-child(17) { left: 68%; animation-duration: 6.7s; animation-delay: 0.4s; }
.petal:nth-child(18) { left: 78%; animation-duration: 8.2s; animation-delay: 1.6s; }
.petal:nth-child(19) { left: 88%; animation-duration: 5.8s; animation-delay: 0.8s; }
.petal:nth-child(20) { left: 92%; animation-duration: 7.4s; animation-delay: 1.9s; }

@keyframes fall {
    0% {
        right: -50px;
        top: -50px;
        opacity: 1;
        transform: rotate(0deg) translateX(0);
    }
    100% {
        right: 100vh;
        top: 100vh;
        opacity: 0;
        transform: rotate(-360deg) translateX(0);
    }
}

@media (max-width: 768px) {
    .container::before {
        background-position: center;
        filter: brightness(85%);
        -webkit-filter: brightness(85%);
    }
    .petal {
        width: 10px;
        height: 18px;
    }
    .petal:nth-child(1) { animation-duration: 6s;animation-delay: 0s }
    .petal:nth-child(2) { animation-duration: 4s;animation-delay: 0.5s }
    .petal:nth-child(3) { animation-duration: 5s;animation-delay: 0.3s }
    .petal:nth-child(4) { animation-duration: 7s;animation-delay: 1.5s }
    .petal:nth-child(5) { animation-duration: 3s;animation-delay:0.5s }
    .petal:nth-child(6) { animation-duration: 5.5s;animation-delay:1.0s  }
    .petal:nth-child(7) { animation-duration: 4.5s;animation-delay:0.1s  }
    .petal:nth-child(8) { animation-duration: 6.5s;animation-delay: 1.3s }
    .petal:nth-child(9) { animation-duration: 3.5s;animation-delay:0.2s  }
    .petal:nth-child(10) { animation-duration: 5.2s;animation-delay:1.3s }
    .petal:nth-child(11) { animation-duration: 5.8s;animation-delay:0.1s }
    .petal:nth-child(12) { animation-duration: 4.2s;animation-delay:1.0s  }
    .petal:nth-child(13) { animation-duration: 5.3s;animation-delay:0.5s  }
    .petal:nth-child(14) { animation-duration: 6.8s;animation-delay:2.0s }
    .petal:nth-child(15) { animation-duration: 3.2s;animation-delay:0.8s  }
    .petal:nth-child(16) { animation-duration: 5.7s;animation-delay:1.2s  }
    .petal:nth-child(17) { animation-duration: 4.7s;animation-delay:0.3s  }
    .petal:nth-child(18) { animation-duration: 6.2s;animation-delay:1.5s  }
    .petal:nth-child(19) { animation-duration: 3.8s;animation-delay:0.7s  }
    .petal:nth-child(20) { animation-duration: 5.4s;animation-delay:1.8s  }
    .petal {
        filter: blur(3px);
    }
    .petal:nth-child(1) { left: 3%; }
    .petal:nth-child(2) { left: 10%;}
    .petal:nth-child(3) { left: 20%;}
    .petal:nth-child(4) { left: 30%;}
    .petal:nth-child(5) { left: 40%;}
    .petal:nth-child(6) { left: 50%;}
    .petal:nth-child(7) { left: 60%;}
    .petal:nth-child(8) { left: 70%;}
    .petal:nth-child(9) { left: 80%;}
    .petal:nth-child(10) { left: 90%;}
    .petal:nth-child(11) { left: 5%;}
    .petal:nth-child(12) { left: 15%;}
    .petal:nth-child(13) { left: 25%;}
    .petal:nth-child(14) { left: 35%;}
    .petal:nth-child(15) { left: 45%;}
    .petal:nth-child(16) { left: 55%;}
    .petal:nth-child(17) { left: 65%;}
    .petal:nth-child(18) { left: 75%;}
    .petal:nth-child(19) { left: 85%;}
    .petal:nth-child(20) { left: 95%;}
    @keyframes fall {
        0% {
            right: -30px;
            top: -30px;
            opacity: 1;
            transform: rotate(0deg) translateX(0);
        }
        100% {
            right: 100%;
            top: 100%;
            opacity: 0.2;
            transform: rotate(-180deg) translateX(0);
        }
    }
}